package net.khoroshev.wschat.dao;

import net.khoroshev.wschat.model.entity.AuthUser;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * Created with IntelliJ IDEA.
 * User: vfirstov
 * Date: 02.12.13
 * Time: 16:59
 *
 */
public interface DataStorageProvider {

    void createUser(AuthUser user);


    void updateUser(AuthUser user);


    void deleteUser(String username);


    void changePassword(String oldPassword, String newPassword);


    boolean userExists(String username);


    AuthUser loadUserByUsername(String username) throws UsernameNotFoundException;

}
